
package com.carsite.service.impl;

import java.util.List;

import com.carsite.service.impl.BaseManager;
import com.carsite.model.CheckTable;
import com.carsite.dao.CheckTableDao;
import com.carsite.service.CheckTableManager;

public class CheckTableManagerImpl extends BaseManager implements CheckTableManager {
    private CheckTableDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setCheckTableDao(CheckTableDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.carsite.service.CheckTableManager#getCheckTables(com.carsite.model.CheckTable)
     */
    public List getCheckTables(final CheckTable checkTable) {
        return dao.getCheckTables(checkTable);
    }

    /**
     * @see com.carsite.service.CheckTableManager#getCheckTable(String ctId)
     */
    public CheckTable getCheckTable(final String ctId) {
        return dao.getCheckTable(new Long(ctId));
    }

    /**
     * @see com.carsite.service.CheckTableManager#saveCheckTable(CheckTable checkTable)
     */
    public void saveCheckTable(CheckTable checkTable) {
        dao.saveCheckTable(checkTable);
    }

    /**
     * @see com.carsite.service.CheckTableManager#removeCheckTable(String ctId)
     */
    public void removeCheckTable(final String ctId) {
        dao.removeCheckTable(new Long(ctId));
    }
}
